<h1>Categories : <?php echo $main_category_name; ?></h1>

<a href = "<?php echo base_url(); ?>admin/categories/add" class = "add">
  <?php echo image_asset('icon-add.png', 'admin', array('alt'=>'Add','class'=>'img_link')); ?>
  &nbsp;&nbsp;Add
</a>

<div class = "page">
  
</div>

<div class = "clear"></div>

<table class ="list">
  <tr>
    <th scope="col">Name (th)</th>
    <th scope="col">Name (en)</th>
    <!--<th scope="col" width = "50">Active</th>-->
    <th scope="col" width = "50">Edit</th>
    <th scope="col" width = "50">Delete</th>
  </tr>
<?
 foreach ($lists as $v) {
?>
  <tr>
    <td><?php echo $v->name_th; ?></td>
    <td><?php echo $v->name_en; ?></td>
    <!--<td><a href = "<?php echo base_url(); ?>admin/categories/active/<?php echo $v->id; ?>" class = "btn">edit</a></td>-->
    <td><a href = "<?php echo base_url(); ?>admin/categories/edit/<?php echo $v->id; ?>" class = "btn">edit</a></td>
    <td><a href = "<?php echo base_url(); ?>admin/categories/del/<?php echo $v->id; ?>" class = "btn" onClick = "return confirmSubmit()">delete</a></td>
  </tr>
<?
  }
?>
</table>